package com.fankui.crowd.service;

import com.fankui.crowd.entity.Role;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * ClassName RoleService
 * Description TODO
 * Date 2023/7/30 22:13
 *
 * @Author 范奎
 * @Since JDK 11
 */
public interface RoleService {

    PageInfo<Role> getRolePage(String keyword, Integer pageNum, Integer pageSize);

    void saveRole(Role role);

    void updateRole(Role role);

    void removeRole(List<Integer> roleIdList);

    List<Role> getAssignedRole(Integer adminId);

    List<Role> getUnAssignedRole(Integer adminId);

    void saveAdminRoleRelationship(Integer adminId, List<Integer> roleIdList);
}
